// 原则：尽可能复用类型
type StringOrNumber = string | number;

let a: StringOrNumber = 123;
let b: StringOrNumber = "hello";

type Arr = string[];
let c: Arr = ["a", "b"];
let d: Arr = ["a", "b"];
